package cn.edu.scau.cmi.chenyuanying.classAdapter;

import java.util.List;

public class SortUtil {
	public void sortInt(List<Integer> intList) {
		int length = intList.size();
		for(int i = 0; i < length - 1; i++) {
			for(int j = i + 1; j < length; j++) {
				if(intList.get(i) > intList.get(j)) {
					int t = intList.get(j);
					intList.set(j, intList.get(i));
					intList.set(i, t);
				}
			}
		}
	}
}
